/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk;

import android.text.TextUtils;
import com.qihoo.psdk.util.h;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.json.JSONObject;

public class c {
    private static String d = "EventBean";
    public String a = "";
    public long b = 0L;
    public Map c = null;

    public c() {}

    public c(String paramString, Map paramMap) {
        this.a = paramString;
        this.b = n.o();
        this.c = paramMap;
    }

    public JSONObject a() {
        JSONObject localJSONObject = null;
        try {
            if (!(TextUtils.isEmpty(this.a))) {
                localJSONObject = new JSONObject();
                localJSONObject.put("qhId", this.a);
                localJSONObject.put("qhTs", this.b);
                if (this.c != null) {
                    Map.Entry localEntry = null;
                    String str1 = null;
                    String str2 = null;
                    Iterator localIterator = this.c.entrySet().iterator();
                    while (localIterator.hasNext()) {
                        localEntry = (Map.Entry) localIterator.next();
                        str1 = (String) localEntry.getKey();
                        str2 = (String) localEntry.getValue();
                        if (("qhId".equals(str1)) || ("qhTs".equals(str1)))
                            continue;
                        localJSONObject.put(str1, str2);
                    }
                }
            }
        } catch (Exception localException) {
            h.a(d, localException);
        } catch (Error localError) {
            h.a(d, localError);
        }
        return localJSONObject;
    }
}